package main

import (
	"fmt"
)

func main() {

	var chan1 chan int = make(chan int, 2)

	chan1 <- 1
	chan1 <- 2
	// chan1 <- 3
	// close(chan1)
	for {
		fmt.Println(<-chan1)
	}
}
